Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TDL-15318: PK for track_events stream #50

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

hpatel41
Copy link
Contributor

Description of change

TDL-15318: PK for track_events stream

  • The updated primary key with a combination of the below fields:

    • ['track_type_id', 'day/hour', 'visitor_id', 'account_id', 'server', 'remote_ip', 'user_agent']

Reference: https://developers.pendo.io/docs/?bash#events-grouped

Manual QA steps

Risks

Rollback steps

  • revert this branch

@hpatel41 hpatel41 changed the base branch from master to crest-develop September 16, 2021 09:33
@hpatel41 hpatel41 changed the base branch from crest-develop to master September 27, 2021 13:03
self.REPLICATION_KEYS: {'browser_time'}
},
"track_events": {
self.PRIMARY_KEYS: {"track_type_id", "visitor_id", "account_id", "server", "remote_ip", "user_agent", "day"}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of this can we write:

"track_type_id", "visitor_id", "account_id", "server", "remote_ip", "user_agent", "day" if self.is_day_range else "hour"}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

"events": {
self.PRIMARY_KEYS: {"visitor_id", "account_id", "server", "remote_ip"},
self.REPLICATION_METHOD: self.INCREMENTAL,
self.REPLICATION_KEYS: {'day'} if self.is_day_range else {'hour'}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of putting dict in if-else, we can put if-else inside dict for string.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@hpatel41 hpatel41 requested a review from dbshah1212 September 29, 2021 12:33
@karanpanchal-crest karanpanchal-crest self-requested a review October 7, 2021 19:18
@hpatel41
Copy link
Contributor Author

CircleCI build is failing currently as we have added a standard discover test to verify updated primary key but replication keys are not with expected inclusion currently. The replication key with valid inclusion is fixed as part of #45.

@karanpanchal-crest
Copy link
Contributor

Blocked on merging this PR since there is a discussion going on in the JIRA (https://jira.talendforge.org/browse/TDL-15318) regarding the correct Primary Key to choose for this stream.
CC: @KrisPersonal

@karanpanchal-crest
Copy link
Contributor

CircleCI build is failing currently as we have added a standard discover test to verify updated primary key but replication keys are not with expected inclusion currently. The replication key with valid inclusion is fixed as part of #45.

This PR is dependent on PR #45

@hpatel41 hpatel41 marked this pull request as draft November 22, 2021 08:27
@hpatel41 hpatel41 marked this pull request as ready for review December 1, 2021 12:02
savan-chovatiya and others added 3 commits December 9, 2021 11:22
* TDL-15317: Updated primary key for feature-events

* Moved integration test

* TDL-15317: Updated integration test

* updated readme file

* Resolved internal PR review comments

* Resolved review comments

* run bookmark test with hour and day range

Co-authored-by: harshpatel4_crest <[email protected]>
Co-authored-by: Harsh <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants